You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example uses awk.rb to illustrate the problem.
Fetch awk.rb and install its HEAD version. This works as expected:
$ curl -LO https://github.com/Homebrew/homebrew-core/raw/HEAD/Formula/a/awk.rb
$ brew install --verbose --HEAD --formula awk.rb
Now remove the "url" and "sha256" fields from awk.rb (thus turning it into a
HEAD-only formula) and try to install the HEAD version again. This fails:
$ sed -i -e /url/,/sha256/d awk.rb
$ brew uninstall awk
$ brew install --verbose --HEAD --formula awk.rb
[...]
==> Finishing up
ln -s ../Cellar/awk/HEAD-f8be48f/bin/awk awk
ln -s ../../../Cellar/awk/HEAD-f8be48f/share/man/man1/awk.1 awk.1
Error: undefined method `bottle_specification' for nil:NilClass/opt/homebrew/Library/Homebrew/formula.rb:2582:in `bottle_hash'/opt/homebrew/Library/Homebrew/sbom.rb:37:in `create'/opt/homebrew/Library/Homebrew/formula_installer.rb:834:in `finish'
/opt/homebrew/Library/Homebrew/upgrade.rb:238:in `install_formula'/opt/homebrew/Library/Homebrew/install.rb:350:in `install_formula'/opt/homebrew/Library/Homebrew/install.rb:301:in `block in install_formulae'/opt/homebrew/Library/Homebrew/install.rb:300:in `each'
/opt/homebrew/Library/Homebrew/install.rb:300:in `install_formulae'/opt/homebrew/Library/Homebrew/cmd/install.rb:297:in `run'/opt/homebrew/Library/Homebrew/brew.rb:92:in `<main>'Please report this issue: https://docs.brew.sh/Troubleshooting
The text was updated successfully, but these errors were encountered:
- be a bit stricter with SBOM handling with the test default formula
flow in CI by making it raise errors if SBOM's aren't generated and
validated as expected
- fix handling of HEAD installations of formulae so SBOM generation is
both correct and doesn't raise errors
- make `Formula#bottle_hash` more accepting of edge cases e.g. HEAD-only
formulae without a stable spec
Fixes#17333
brew doctor
outputVerification
brew doctor
output" above saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
twice and am still able to reproduce my issue.brew install wget
. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.brew config
outputWhat were you trying to do (and why)?
I have a tap with a few HEAD-only formulae. Installing these formulae has recently started to fail, presumably because of the recent SBOM changes.
What happened (include all command output)?
The installation failed. Please see the reproducer below for details.
What did you expect to happen?
The installation should succeed.
Step-by-step reproduction instructions (by running
brew
commands)The text was updated successfully, but these errors were encountered: